public class aa212212 {
    private static int num;

    public static void main(String[] args) {
        for (int i = 1; i <=9; i++) {
            for (int j = 1; j <=5 ; i++) {
                System.out.println("*");}
            System.out.println(i);
        }
    }
}
